package cn.com.cmbc.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("\"test\".\"person\"")
public class Person {
    //标注id
    @TableId(type = IdType.INPUT,value = "pid")
    private String pid;
    //注意必须写规范,不加"代表全大写
    @TableField("\"info\".\"sex\"")
    private String sex;
    @TableField("\"info\".\"age\"")
    private String age;
    @TableField("\"address\".\"city\"")
    private String city;
}
